package models;

/**
 * Enum class for the priority values for each Task
 * @author Richard Pan
 *
 */
public enum TaskPriority {
	ONE		(1),
	TWO		(2),
	THREE 	(3),
	FOUR 	(4),
	FIVE 	(5);
	
	// Number equivalent of each priority
	private final int priorityNumber;
	
	private TaskPriority(int num) {
		priorityNumber = num;
	}
	
	/**
	 * Returns the number value for the priority
	 * @return Priority number
	 */
	public int getPriorityValue() {
		return priorityNumber;
	}
	
	/**
	 * String representation of the priority
	 */
	public String toString() {
		return this.name() + ": " + priorityNumber;
	}
}